<!DOCTYPE html>
<html lang="en">

    <head>
        <title><?=$title?></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <link rel="stylesheet" href="<?=base_url(); ?>assets/css/jquery-ui-1.8.16.custom.css" />
        <link rel="stylesheet" href="<?=base_url(); ?>assets/css/bootstrap.css" />
        <link rel="stylesheet" href="<?=base_url(); ?>assets/css/bootstrap-responsive.css">
        <link rel="stylesheet" href="<?=base_url(); ?>assets/css/style.css">

        <style>body{padding-top: 60px;}</style>

        <!--[if IE]>
        <link rel="stylesheet" type="text/css" href="<?=base_url(); ?>assets/css/jquery.ui.1.8.16.ie.css"/>
        <![endif]-->

        <!-- VARS to JS -->
        <script type="text/javascript">
            var base_url = '<?=base_url()?>';
            var title = '<?=$title?>';
        </script>

    </head>

    <body>

        <?php 
            //$this->load->view('testCases');
            $this->load->view('menu');
            echo $template['body']; 
        ?>

        <div class="container"><div id="footer"><p>&copy; 2012 NU SIT Bar</p></div></div>

        <script type="text/javascript" src="<?=base_url(); ?>assets/js/libs/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="<?=base_url(); ?>assets/js/libs/bootstrap.min.js"></script>
        <script type="text/javascript" src="<?=base_url(); ?>assets/js/libs/jquery.validate.js"></script>
        <script type="text/javascript" src="<?=base_url(); ?>assets/js/libs/jquery-ui.min.js"></script>
        <script type="text/javascript" src="<?=base_url(); ?>assets/js/libs/hoverIntent.js"></script>
        <script type="text/javascript" src="<?=base_url(); ?>assets/js/libs/superfish.js"></script>

        <script src="<?=base_url()?>assets/js/helper.js" type="text/javascript"></script> <!--helper methods-->

        <?
            switch ($this->router->fetch_class()) {
                case 'objects':?>
                <script src="<?=base_url()?>assets/js/editObject.js" type="text/javascript"></script>
                <script src="<?=base_url()?>assets/js/editAttributes.js" type="text/javascript"></script>
                <script src="<?=base_url()?>assets/js/newAttribute.js" type="text/javascript"></script>
                <?break;
                case 'partners':?>
                <script src="<?=base_url()?>assets/js/editPartner.js" type="text/javascript"></script>
                <?break;
                case 'attributes_to_object':?>
                <script src="<?=base_url()?>assets/js/setDefaultAttributesToObject.js" type="text/javascript"></script>
                <?break;
                case 'groups_to_object':?>
                <script src="<?=base_url()?>assets/js/setDefaultGroupsToObject.js" type="text/javascript"></script>
                <?break;
            }
        ?>

        <script src="<?=base_url()?>assets/js/testCases.js" type="text/javascript"></script>
        <script src="<?=base_url()?>assets/js/init.js" type="text/javascript"></script>

    </body>

</html>